<!--
 * @Description: 
 * @Author: xuechengwu
 * @Email: 516385822@qq.com
 * @Date: 2022-02-09 09:57:34
 * @LastEditTime: 2022-02-09 15:53:37
 * @LastEditors: xuechengwu
-->
<template>
  <input :value="value" class="xue-input" @change="eventEmit" @input="eventEmit" />
</template>

<script>
export default {
    props: {
        value: {
            type: String,
            default: '',
        },
    },
    methods: {
        eventEmit(e) {
            const { value } = e.target;
            this.$emit('event', {
                name: 'input',
                data: value,
            });
        }
    }
}
</script>

<style scoped>
.xue-input {

}
</style>